﻿@model Susha.Models.Pages.HomePage

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
    @Scripts.Render("/Scripts/common/user.js")
}

<h1>Главная страница</h1>
@foreach (Susha.Models.News news in Model.NewsList)
{
    <b>@news.Title</b><br />
    <a href="@Url.Action("Index", "News", new { id = news.Id })"> <img src="@Url.Content("~/Content/i/")@news.SmallPhoto" /></a><br />
    @news.SmallText<br />
    <br />
}